package exsun.jt808.data.jt809_data.vehicledynamic.main;

import com.alibaba.fastjson.JSONObject;
import exsun.jt808.data.jt809_data.BasicVehicleInfo;
import exsun.jt808.data.jt809_data.SendBaseEntity;
import lombok.Data;

import java.io.Serializable;

/**
 * 上传车辆注册信息消息
 */
@Data
public class UpExgMsgRegister extends SendBaseEntity{

    /**
     * 车辆基本信息
     */
    public BasicVehicleInfo basicVehicleInfo;

    /**
     * 车载终端厂商唯一编码
     */
    public String producerId;

    /**
     * 车载终端型号
     */
    public String terminalModelType;

    /**
     * 车载终端编号
     */
    public String terminalId;

    /**
     * 车载终端 SIM 卡电话号码。
     */
    public String terminalSimCode;

    /**
     * 平台id
     */
    public String PlatformId;

    public BasicVehicleInfo getBasicVehicleInfo() {
        return basicVehicleInfo;
    }

    public void setBasicVehicleInfo(BasicVehicleInfo basicVehicleInfo) {
        this.basicVehicleInfo = basicVehicleInfo;
    }

    public String getProducerId() {
        return producerId;
    }

    public void setProducerId(String producerId) {
        this.producerId = producerId;
    }

    public String getTerminalModelType() {
        return terminalModelType;
    }

    public void setTerminalModelType(String terminalModelType) {
        this.terminalModelType = terminalModelType;
    }

    public String getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(String terminalId) {
        this.terminalId = terminalId;
    }

    public String getTerminalSimCode() {
        return terminalSimCode;
    }

    public void setTerminalSimCode(String terminalSimCode) {
        this.terminalSimCode = terminalSimCode;
    }

    public String getPlatformId() {
        return PlatformId;
    }

    public void setPlatformId(String platformId) {
        PlatformId = platformId;
    }

    public JSONObject toJSONString() {
        JSONObject object = new JSONObject();
        object.put("producerId", producerId);
        object.put("terminalModelType", terminalModelType);
        object.put("terminalId", terminalId);
        object.put("terminalSimCode", terminalSimCode);
        object.put("PlatformId", PlatformId);
        return object;
    }
}
